#ifndef Utils_Database_Manager_H
#define Utils_Database_Manager_H

#include <QSqlDatabase>
#include <QVariant>

class DBManagerPrivate;
class DBManager
{
public:

    static bool addDatabase(const QVariantMap& databaseInfo);
    static bool contains(const QString& databaseName);
    static QSqlDatabase database(const QString& databaseName);


    ~DBManager();

protected:
    explicit DBManager();

private:
    Q_DISABLE_COPY(DBManager)
    DBManagerPrivate* const d;
};

#endif // Utils_Database_Manager_H
